Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

EVG-20661: Fix useless Sentry error #2041

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Conversation

sophstad
Copy link
Contributor

EVG-20661

Description

We were reporting GraphQL errors using a POJO instead of an Error. BugSnag will try to coerce the object into an error (source):

If you provide something that is not an Error, such as a string or an object with name and message fields, notify will attempt to generate a stacktrace.

but Sentry does not, instead logging many events like this:

image

Using a proper Error fixes the issue. Here is an example.

@sophstad sophstad requested a review from a team September 15, 2023 16:58
@sophstad sophstad marked this pull request as ready for review September 15, 2023 16:58
@cypress
Copy link

cypress bot commented Sep 15, 2023

Passing run #12721 ↗︎

0 577 7 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Fix useless GraphQL error
Project: Spruce Commit: 3166d09f43
Status: Passed Duration: 17:56 💡
Started: Sep 15, 2023 5:03 PM Ended: Sep 15, 2023 5:21 PM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@sophstad sophstad added this pull request to the merge queue Sep 18, 2023
Merged via the queue into evergreen-ci:main with commit 8081578 Sep 18, 2023
2 checks passed
@sophstad sophstad deleted the EVG-20661 branch September 18, 2023 13:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants